
<!DOCTYPE html>
<html>
<head>
   <title>渠道导出</title>
   <meta charset="UTF-8" />
   <link rel="stylesheet" type="text/css" href="/public/css/bootstrap/bootstrap.min.css"/>
	<link rel="stylesheet" type="text/css" href="/application/admin/static/css/style.css"/>
	<script src="/public/js/jquery.js"></script>
   <style>
	.form-horizontal{margin-top:20px;}
	.form-actions{margin-top:20px!important;}
	.controls p{padding: 10px 0px;}
	.table-condensed th, .table-condensed td{padding:0px 5px;}
	.uploadify-button {
		width: 80px;
		height: 20px;
		border: 1px solid #cacaca;
		float: left;
		line-height:20px;
		padding-left: 5px;
		color: #666;
	}
	span.ft_14 {
		float: left;
		text-align: right;
		width: 90px;
		margin-right: 10px;
		overflow: hidden;
	}
	#file_upload,#zfile_upload,#cfile_upload{
		
		float: left;
	}
	#file_queue,#zfile_queue,#cfile_queue{margin-left:20px;}

</style>
</head>
<body>

   <div class="form-horizontal" id="fengmian" >
	<form id="fengmianform">
		<div class="form-horizontal">
			<div class="control-group">
				<div class="controls">
					<P><input type="checkbox" name="channel[]" value="1">第三方渠道</P>
					<P><input type="checkbox" name="channel[]" value="2">新媒体渠道</P>
					<P><input type="checkbox" name="channel[]" value="3">其他渠道</P>
					
				</div>
			</div>	
			<div class="form-actions">
				<div class="btn btn-success" onclick="shareexport();">确认导出</div>
			</div>
		</div>
		</form>
   </div>
  
  

<script>
	console.log(getParam("shareid"))
	function getParam(paramName){
	  paramValue ="";
	  isFound =false;
	  if (this.location.search.indexOf("?") ==0&&this.location.search.indexOf("=")>1){
		arrSource = unescape(this.location.search).substring(1,this.location.search.length).split("&");
		i =0;
		while (i < arrSource.length &&!isFound){
		  if (arrSource[i].indexOf("=") >0){
			if (arrSource[i].split("=")[0].toLowerCase()==paramName.toLowerCase()){
			  paramValue = arrSource[i].split("=")[1];
			  isFound =true;
			}
		  }
		i++;
		}
	  }
	  return paramValue;
	}
   function shareexport(){
	   var shareid = getParam("shareid");
	   var index = parent.layer.getFrameIndex(window.name);	  
	    parent.layer.close(index);
		if(shareid){
			var data = $('#fengmianform').serialize();
			window.open("http://open.zuidie.net/index.php/ajax/ShareExport?shareid="+shareid+"&"+data);
		}else{
			var data = $('#fengmianform').serialize();
			window.open("http://open.zuidie.net/index.php/ajax/ShareExport?"+data);
		}
	   
   }
</script>

</body>
</html>